﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="StructureDiagramAdd.aspx.cs"
    Inherits="ITOMMS.Web.StructureDiagram.StructureDiagramAdd" %>

<%@ Register Src="../Control/HeadControl.ascx" TagName="HeadControl" TagPrefix="uc4" %>
<%@ Register Src="../Control/FootControl.ascx" TagName="FootControl" TagPrefix="uc3" %>
<%@ Register Src="../Control/leftMenuControl.ascx" TagName="leftMenuControl" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>结构图添加</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />

    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div id="content1">
            <div style="margin: 0 0; height: 428px; text-align: center; border: 1px solid #DCDCDC;
                background: url(images/line_bg.PNG) repeat-x bottom;">
                <table class="tblDataArea" width="100%">
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption" colspan="2">
                            <div style="width: 210px;" class="title">
                                <img src="../images/lv3.gif" style="margin-bottom: -3px;" /><asp:Label ID="lblPageName"
                                    runat="server"></asp:Label></div>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            所属公司：</td>
                        <td class="tdQueryField">
                        <asp:DropDownList ID="ddlCompanyID" runat="server" Width="158px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            结构图类型：</td>
                        <td class="tdQueryField">
                            <asp:DropDownList ID="ddlType" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"
                                Width="162px">
                                <asp:ListItem Value="1">权限分配图</asp:ListItem>
                                <asp:ListItem Value="2">网络拓朴图</asp:ListItem>
                                <asp:ListItem Value="3">网络点位图</asp:ListItem>
                                <asp:ListItem Value="4">其他</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            结构图名称：</td>
                        <td class="tdQueryField">
                            <asp:TextBox ID="txtSDName" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                onmouseout="this.className='input_out'"></asp:TextBox>*</td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            上传图片：</td>
                        <td class="tdQueryField">
                            <asp:FileUpload ID="FileUpload1" runat="server" />&nbsp; *(说明：图片大小，请勿超过2M) <a href='<%=picpath %>'
                                target="_blank">
                                <asp:Label ID="lblViewPic" runat="server" Text="查看原图" Visible="False"></asp:Label></a></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            说明信息：</td>
                        <td class="tdQueryField" colspan="1">
                            <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" class="input_out"
                                onfocus="this.className='input_on';this.onmouseout=''" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"
                                Height="210px" Width="610px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption" colspan="2" style="text-align: center; height: 31px;">
                            <asp:Button ID="btnSave" runat="server" CssClass="cssButton" Text="保存" OnClientClick="javascript:return confirm('你确认要提交吗?');" OnClick="btnSave_Click" /></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>

<script type="text/javascript">

function check()
{
   // alert($.GetValidResult());
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}

    $("#ddlType").attr("dataType","Require");
    $("#ddlType").attr("tip", "请选择结构图类型");
    
    $("#txtSDName").attr("dataType","Require");
    $("#txtSDName").attr("tip", "请输入结构图名称");      
    
</script>

